<!DOCTYPE html>
<html lang="zh-CN">





<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/img/icon-mouse.ico">
  <link rel="icon" type="image/png" href="/img/icon-mouse.ico">
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#024e68">
  <meta name="description" content="">
  <meta name="author" content="织墨">
  <meta name="keywords" content="">
  <title>Oracle基本操作 - 织墨</title>

  <link  rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.4.1/css/bootstrap.min.css" />


  <link  rel="stylesheet" href="https://cdn.staticfile.org/github-markdown-css/4.0.0/github-markdown.min.css" />
  <link  rel="stylesheet" href="/lib/hint/hint.min.css" />

  
    <link  rel="stylesheet" href="https://cdn.staticfile.org/highlight.js/10.0.0/styles/github-gist.min.css" />
  

  


<!-- 主题依赖的图标库，不要自行修改 -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_yg9cfy8wd6.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_pjno9b9zyxs.css">


<link  rel="stylesheet" href="/css/main.css" />

<!-- 自定义样式保持在最底部 -->


  <script  src="/js/utils.js" ></script>
<meta name="generator" content="Hexo 5.0.0"></head>


<body>
  <header style="height: 70vh;">
    <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand"
       href="/">&nbsp;<strong>织墨</strong>&nbsp;</a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/">
                <i class="iconfont icon-home-fill"></i>
                首页
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/archives/">
                <i class="iconfont icon-archive-fill"></i>
                归档
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/categories/">
                <i class="iconfont icon-category-fill"></i>
                分类
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/tags/">
                <i class="iconfont icon-tags-fill"></i>
                标签
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/about/">
                <i class="iconfont icon-user-fill"></i>
                关于
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" data-toggle="modal" data-target="#modalSearch">&nbsp;&nbsp;<i
                class="iconfont icon-search"></i>&nbsp;&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div class="view intro-2" id="background" parallax=true
         style="background: url('/img/bg2s.jpg') no-repeat center center;
           background-size: cover;">
      <div class="full-bg-img">
        <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
          <div class="container text-center white-text fadeInUp">
            <span class="h2" id="subtitle">
              
            </span>

            
              
  <div class="mt-3 post-meta">
    <i class="iconfont icon-date-fill" aria-hidden="true"></i>
    <time datetime="2021-01-26 19:30">
      2021年1月26日 晚上
    </time>
  </div>


<div class="mt-1">
  
    
    <span class="post-meta mr-2">
      <i class="iconfont icon-chart"></i>
      646 字
    </span>
  

  
    
    <span class="post-meta mr-2">
      <i class="iconfont icon-clock-fill"></i>
      
      
      9
       分钟
    </span>
  

  
  
    
      <!-- 不蒜子统计文章PV -->
      <span id="busuanzi_container_page_pv" style="display: none">
        <i class="iconfont icon-eye" aria-hidden="true"></i>
        <span id="busuanzi_value_page_pv"></span> 次
      </span>
    
  
</div>

            
          </div>

          
        </div>
      </div>
    </div>
  </header>

  <main>
    
      

<div class="container-fluid">
  <div class="row">
    <div class="d-none d-lg-block col-lg-2"></div>
    <div class="col-lg-8 nopadding-md">
      <div class="container nopadding-md" id="board-ctn">
        <div class="py-5" id="board">
          <div class="post-content mx-auto" id="post">
            
            <article class="markdown-body">
              <h2 id="创建用户、表空间、分配权限"><a href="#创建用户、表空间、分配权限" class="headerlink" title="创建用户、表空间、分配权限"></a><a target="_blank" rel="noopener" href="https://www.cnblogs.com/xmaomao/p/3273102.html">创建用户、表空间、分配权限</a></h2><pre><code class="hljs pgsql"><span class="hljs-keyword">SQL</span>&gt; <span class="hljs-keyword">create</span> <span class="hljs-keyword">temporary</span> <span class="hljs-keyword">tablespace</span> van_temp
  <span class="hljs-number">2</span>  tempfile <span class="hljs-string">&#x27;C:\app\Alan\product\oracleData\ctp\van_temp.dbf&#x27;</span>
  <span class="hljs-number">3</span>  size <span class="hljs-number">50</span>m
  <span class="hljs-number">4</span>  autoextend <span class="hljs-keyword">on</span>
  <span class="hljs-number">5</span>  next <span class="hljs-number">50</span>m maxsize <span class="hljs-number">20480</span>m
  <span class="hljs-number">6</span>  extent management <span class="hljs-keyword">local</span>;

表空间已创建。

<span class="hljs-keyword">SQL</span>&gt; <span class="hljs-keyword">create</span> <span class="hljs-keyword">tablespace</span> van_data
  <span class="hljs-number">2</span>  logging
  <span class="hljs-number">3</span>  datafile <span class="hljs-string">&#x27;C:\app\Alan\product\oracleData\ctp\van_data.dbf&#x27;</span>
  <span class="hljs-number">4</span>  size <span class="hljs-number">50</span>m
  <span class="hljs-number">5</span>  autoextend <span class="hljs-keyword">on</span>
  <span class="hljs-number">6</span>  next <span class="hljs-number">50</span>m maxsize <span class="hljs-number">20480</span>m
  <span class="hljs-number">7</span>  extent management <span class="hljs-keyword">local</span>;

表空间已创建。

<span class="hljs-keyword">SQL</span>&gt; <span class="hljs-keyword">create</span> <span class="hljs-keyword">user</span> van identified <span class="hljs-keyword">by</span> admin123
  <span class="hljs-number">2</span>  <span class="hljs-keyword">default</span> <span class="hljs-keyword">tablespace</span> van_data
  <span class="hljs-number">3</span>  <span class="hljs-keyword">temporary</span> <span class="hljs-keyword">tablespace</span> van_temp;

用户已创建。

<span class="hljs-keyword">SQL</span>&gt; <span class="hljs-keyword">grant</span> <span class="hljs-keyword">connect</span>,resource,dba <span class="hljs-keyword">to</span> van;

授权成功。

//查询临时文件存放位置
<span class="hljs-keyword">select</span> <span class="hljs-type">name</span> <span class="hljs-keyword">from</span> v$tempfile;
//查询数据文件存放位置
<span class="hljs-keyword">select</span> <span class="hljs-type">name</span> <span class="hljs-keyword">from</span> v$datafile;

//修改用户表空间
<span class="hljs-keyword">alter</span> <span class="hljs-keyword">user</span> van <span class="hljs-keyword">default</span> <span class="hljs-keyword">tablespace</span> van_data;
//修改用户临时表空间
<span class="hljs-keyword">alter</span> <span class="hljs-keyword">user</span> van <span class="hljs-keyword">temporary</span> <span class="hljs-keyword">tablespace</span> van_temp;</code></pre>

<h2 id="创建Directory"><a href="#创建Directory" class="headerlink" title="创建Directory"></a><a target="_blank" rel="noopener" href="https://www.cnblogs.com/zougang/p/directory.html">创建Directory</a></h2><p>1、新建directory的语法</p>
<pre><code class="hljs sql"><span class="hljs-keyword">CREATE</span> [<span class="hljs-keyword">OR</span> <span class="hljs-keyword">REPLACE</span>] <span class="hljs-keyword">DIRECTORY</span> <span class="hljs-keyword">directory</span> <span class="hljs-keyword">AS</span> <span class="hljs-string">&#x27;pathname&#x27;</span>; </code></pre>

<p>例如： </p>
<pre><code class="hljs sql"><span class="hljs-keyword">create</span> <span class="hljs-keyword">or</span> <span class="hljs-keyword">replace</span> <span class="hljs-keyword">directory</span> dump_dir <span class="hljs-keyword">as</span> <span class="hljs-string">&#x27;D:\dump\dir&#x27;</span>;</code></pre>

<p>这样把目录d:\dump\dir设置成dump_dir代表的directory </p>
<p>2、查询当前已有的directory </p>
<pre><code class="hljs n1ql"><span class="hljs-keyword">select</span> * <span class="hljs-keyword">from</span> dba_directories;</code></pre>

<p>3、给制定用户赋权</p>
<pre><code class="hljs sql"><span class="hljs-keyword">grant</span> <span class="hljs-keyword">read</span>,write <span class="hljs-keyword">on</span> <span class="hljs-keyword">directory</span> dump_dir <span class="hljs-keyword">to</span> user01

<span class="hljs-comment">--dumo_dir=&gt;已有的directory</span>
<span class="hljs-comment">--user01=&gt;要赋权的用户</span></code></pre>

<p>4、删除 </p>
<pre><code class="hljs sql"><span class="hljs-keyword">drop</span> <span class="hljs-keyword">directory</span> dump_dir;</code></pre>

<h2 id="导入dmp文件"><a href="#导入dmp文件" class="headerlink" title="导入dmp文件"></a><a target="_blank" rel="noopener" href="https://www.cnblogs.com/zuiyue_jing/p/10635045.html">导入dmp文件</a></h2><pre><code class="hljs sql">impdp username/password@ORCL DIRECTORY=dir DUMPFILE=testFile.dmp REMAP_TABLESPACE=old_tableSpace:new_tableSpace REMAP_SCHEMA=old_user:new_user

<span class="hljs-comment">--username=&gt;用户名</span>
<span class="hljs-comment">--password=&gt;密码</span>
<span class="hljs-comment">--ORCL=&gt;主机名</span>
<span class="hljs-comment">--dir=&gt;Directory名</span>
<span class="hljs-comment">--testFile=&gt;文件名，需要放在Directory指向的目录下</span>
<span class="hljs-comment">--REMAP_TABLESPACE=&gt;原有tableSpace名称：新tableSpace名称</span>
<span class="hljs-comment">--REMAP_SCHEMA=&gt;原有用户名：新用户名</span>

impdp van/admin123@orcl DIRECTORY=ctpBase_dir dumpfile=testData.dmp

impdp ctpBase/admin123@orcl DIRECTORY=ctpBase_dir dumpfile=testData.dmp REMAP_TABLESPACE=TBS_REPORT:ctpBase_data REMAP_SCHEMA=VAN:ctpBase</code></pre>



<h2 id="序列操作"><a href="#序列操作" class="headerlink" title="序列操作"></a>序列操作</h2><pre><code class="hljs pgsql"><span class="hljs-comment">--获取指定的序列值，每次查询后都会自增</span>
<span class="hljs-keyword">SELECT</span> UCP.SEQ_SYNC_COMMANDNO.NEXTVAL <span class="hljs-keyword">FROM</span> DUAL
<span class="hljs-comment">--查看所有序列</span>
<span class="hljs-keyword">select</span> * <span class="hljs-keyword">from</span> user_sequences 
<span class="hljs-comment">--创建序列</span>
<span class="hljs-keyword">create</span> <span class="hljs-keyword">sequence</span> UCP.SEQ_SYNC_COMMANDNO <span class="hljs-keyword">increment</span> <span class="hljs-keyword">by</span> <span class="hljs-number">1</span> <span class="hljs-keyword">start</span> <span class="hljs-keyword">with</span> <span class="hljs-number">1</span> nomaxvalue
<span class="hljs-comment">--删除序列</span>
<span class="hljs-keyword">drop</span> <span class="hljs-keyword">sequence</span> SEQ_SYNC_COMMANDNO</code></pre>



<h2 id="几种错误原因"><a href="#几种错误原因" class="headerlink" title="几种错误原因"></a>几种错误原因</h2><h3 id="impdp命令使用错误"><a href="#impdp命令使用错误" class="headerlink" title="impdp命令使用错误"></a>impdp命令使用错误</h3><p>(图片来源：<a target="_blank" rel="noopener" href="https://www.cnblogs.com/zuiyue_jing/p/10635045.html">https://www.cnblogs.com/zuiyue_jing/p/10635045.html</a>)</p>
<p><img src="/img/Oracle%E5%9F%BA%E6%9C%AC%E6%93%8D%E4%BD%9C/%E9%94%99%E8%AF%AF%E5%9B%BE%E7%89%871.png" srcset="/img/loading.gif" alt="错误图片展示" title="错误图片展示"></p>
<p>出现这种错误表示要导入的文件路径不正确，不能直接把文件的绝对路径写入，应该使用Directory的方式来导入</p>
<h3 id="目录没有赋权限"><a href="#目录没有赋权限" class="headerlink" title="目录没有赋权限"></a>目录没有赋权限</h3><p>(图片来源：<a target="_blank" rel="noopener" href="https://www.cnblogs.com/zuiyue_jing/p/10631906.html">https://www.cnblogs.com/zuiyue_jing/p/10631906.html</a>)</p>
<p><img src="/img/Oracle%E5%9F%BA%E6%9C%AC%E6%93%8D%E4%BD%9C/%E9%94%99%E8%AF%AF%E5%9B%BE%E7%89%872.png" srcset="/img/loading.gif" alt="错误图片展示" title="错误图片展示"></p>
<pre><code class="hljs angelscript">连接到: Oracle Database <span class="hljs-number">11</span>g Enterprise Edition Release <span class="hljs-number">11.2</span><span class="hljs-number">.0</span><span class="hljs-number">.4</span><span class="hljs-number">.0</span> <span class="hljs-number">-64</span>bit Production
With the Partitioning, OLAP, Data Mining <span class="hljs-keyword">and</span> Real Application Testing options
ORA<span class="hljs-number">-39002</span>: 操作无效
ORA<span class="hljs-number">-39070</span>: 无法打开日志文件。
ORA<span class="hljs-number">-29283</span>: 文件操作无效
ORA<span class="hljs-number">-06512</span>: 在 <span class="hljs-string">&quot;SYS.UTL_FILE&quot;</span>, line <span class="hljs-number">536</span>
ORA<span class="hljs-number">-29283</span>: 文件操作无效等类似的错误。</code></pre>

<p>提示类似这种类型的错误表示当前用户没有访问指定DIRECTORY的权限，需要进入Sys用户给这个用户赋权，赋权语句：</p>
<pre><code class="hljs sql"><span class="hljs-keyword">GRANT</span> <span class="hljs-keyword">read</span>,write <span class="hljs-keyword">ON</span> <span class="hljs-keyword">DIRECTORY</span> dir_dump <span class="hljs-keyword">TO</span> <span class="hljs-keyword">public</span>;</code></pre>


            </article>
            <hr>
            <div>
              <div class="post-metas mb-3">
                
                  <div class="post-meta mr-3">
                    <i class="iconfont icon-category"></i>
                    
                      <a class="hover-with-bg" href="/categories/Oracle/">Oracle</a>
                    
                      <a class="hover-with-bg" href="/categories/%E6%95%B0%E6%8D%AE%E5%BA%93/">数据库</a>
                    
                  </div>
                
                
                  <div class="post-meta">
                    <i class="iconfont icon-tags"></i>
                    
                      <a class="hover-with-bg" href="/tags/Oracle/">Oracle</a>
                    
                      <a class="hover-with-bg" href="/tags/%E6%95%B0%E6%8D%AE%E5%BA%93/">数据库</a>
                    
                  </div>
                
              </div>
              
                <p class="note note-warning">本博客所有文章除特别声明外，均采用 <a target="_blank" href="https://creativecommons.org/licenses/by-sa/4.0/deed.zh" rel="nofollow noopener noopener">CC BY-SA 4.0 协议</a> ，转载请注明出处！</p>
              
              
                <div class="post-prevnext row">
                  <div class="post-prev col-6">
                    
                    
                      <a href="/2021/01/31/Excel%E5%B8%B8%E7%94%A8%E5%87%BD%E6%95%B0/">
                        <i class="iconfont icon-arrowleft"></i>
                        <span class="hidden-mobile">Excel常用函数</span>
                        <span class="visible-mobile">上一篇</span>
                      </a>
                    
                  </div>
                  <div class="post-next col-6">
                    
                    
                      <a href="/2021/01/26/oracle%E6%95%B0%E6%8D%AE%E5%BA%93%E5%87%BA%E7%8E%B0%20%E2%80%9C%E8%AE%B0%E5%BD%95%E8%A2%AB%E5%8F%A6%E4%B8%80%E4%B8%AA%E7%94%A8%E6%88%B7%E9%94%81%E4%BD%8F%E2%80%9D%E7%9A%84%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88/">
                        <span class="hidden-mobile">Oracle数据库出现 “记录被另一个用户锁住”的解决方案</span>
                        <span class="visible-mobile">下一篇</span>
                        <i class="iconfont icon-arrowright"></i>
                      </a>
                    
                  </div>
                </div>
              
            </div>

            
          </div>
        </div>
      </div>
    </div>
    
      <div class="d-none d-lg-block col-lg-2 toc-container" id="toc-ctn">
        <div id="toc">
  <p class="toc-header"><i class="iconfont icon-list"></i>&nbsp;目录</p>
  <div id="tocbot"></div>
</div>

      </div>
    
  </div>
</div>

<!-- Custom -->


    
  </main>

  
    <a id="scroll-top-button" href="#" role="button">
      <i class="iconfont icon-arrowup" aria-hidden="true"></i>
    </a>
  

  
    <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
  

  

  

  <footer class="mt-5">
  <div class="text-center py-3">
    <div>
      <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a>
      <i class="iconfont icon-love"></i>
      <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener">
        <span>Fluid</span></a>
    </div>
    
  <div class="statistics">
    
    

    
      
        <!-- 不蒜子统计PV -->
        <span id="busuanzi_container_site_pv" style="display: none">
            总访问量 
            <span id="busuanzi_value_site_pv"></span>
             次
          </span>
      
      
    
  </div>


    

    
  </div>
</footer>

<!-- SCRIPTS -->
<script  src="https://cdn.staticfile.org/jquery/3.4.1/jquery.min.js" ></script>
<script  src="https://cdn.staticfile.org/twitter-bootstrap/4.4.1/js/bootstrap.min.js" ></script>
<script  src="/js/debouncer.js" ></script>
<script  src="/js/main.js" ></script>

<!-- Plugins -->


  
    <script  src="/js/lazyload.js" ></script>
  



  <script defer src="https://cdn.staticfile.org/clipboard.js/2.0.6/clipboard.min.js" ></script>
  <script  src="/js/clipboard-use.js" ></script>



  <script defer src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" ></script>





  <script  src="https://cdn.staticfile.org/tocbot/4.11.1/tocbot.min.js" ></script>
  <script>
    $(document).ready(function () {
      var boardCtn = $('#board-ctn');
      var boardTop = boardCtn.offset().top;

      tocbot.init({
        tocSelector: '#tocbot',
        contentSelector: 'article.markdown-body',
        headingSelector: 'h1,h2,h3,h4,h5,h6',
        linkClass: 'tocbot-link',
        activeLinkClass: 'tocbot-active-link',
        listClass: 'tocbot-list',
        isCollapsedClass: 'tocbot-is-collapsed',
        collapsibleClass: 'tocbot-is-collapsible',
        collapseDepth: 0,
        scrollSmooth: true,
        headingsOffset: -boardTop
      });
      if ($('.toc-list-item').length > 0) {
        $('#toc').css('visibility', 'visible');
      }
    });
  </script>



  <script  src="https://cdn.staticfile.org/typed.js/2.0.11/typed.min.js" ></script>
  <script>
    var typed = new Typed('#subtitle', {
      strings: [
        '  ',
        "Oracle基本操作&nbsp;",
      ],
      cursorChar: "|",
      typeSpeed: 60,
      loop: false,
    });
    typed.stop();
    $(document).ready(function () {
      $(".typed-cursor").addClass("h2");
      typed.start();
    });
  </script>



  <script  src="https://cdn.staticfile.org/anchor-js/4.2.2/anchor.min.js" ></script>
  <script>
    anchors.options = {
      placement: "right",
      visible: "hover",
      
    };
    var el = "h1,h2,h3,h4,h5,h6".split(",");
    var res = [];
    for (item of el) {
      res.push(".markdown-body > " + item)
    }
    anchors.add(res.join(", "))
  </script>



  <script  src="/js/local-search.js" ></script>
  <script>
    var path = "/local-search.xml";
    var inputArea = document.querySelector("#local-search-input");
    inputArea.onclick = function () {
      searchFunc(path, 'local-search-input', 'local-search-result');
      this.onclick = null
    }
  </script>



  <script  src="https://cdn.staticfile.org/fancybox/3.5.7/jquery.fancybox.min.js" ></script>
  <link  rel="stylesheet" href="https://cdn.staticfile.org/fancybox/3.5.7/jquery.fancybox.min.css" />

  <script>
    $('#post img:not(.no-zoom img, img[no-zoom]), img[zoom]').each(
      function () {
        var element = document.createElement('a');
        $(element).attr('data-fancybox', 'images');
        $(element).attr('href', $(this).attr('src'));
        $(this).wrap(element);
      }
    );
  </script>







  
  
    <script>
      !function (e, t, a) {
        function r() {
          for (var e = 0; e < s.length; e++) s[e].alpha <= 0 ? (t.body.removeChild(s[e].el), s.splice(e, 1)) : (s[e].y--, s[e].scale += .004, s[e].alpha -= .013, s[e].el.style.cssText = "left:" + s[e].x + "px;top:" + s[e].y + "px;opacity:" + s[e].alpha + ";transform:scale(" + s[e].scale + "," + s[e].scale + ") rotate(45deg);background:" + s[e].color + ";z-index:99999");
          requestAnimationFrame(r)
        }

        function n() {
          var t = "function" == typeof e.onclick && e.onclick;
          e.onclick = function (e) {
            t && t(), o(e)
          }
        }

        function o(e) {
          var a = t.createElement("div");
          a.className = "heart", s.push({
            el: a,
            x: e.clientX - 5,
            y: e.clientY - 5,
            scale: 1,
            alpha: 1,
            color: c()
          }), t.body.appendChild(a)
        }

        function i(e) {
          var a = t.createElement("style");
          a.type = "text/css";
          try {
            a.appendChild(t.createTextNode(e))
          } catch (t) {
            a.styleSheet.cssText = e
          }
          t.getElementsByTagName("head")[0].appendChild(a)
        }

        function c() {
          return "rgb(" + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + ")"
        }

        var s = [];
        e.requestAnimationFrame = e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.oRequestAnimationFrame || e.msRequestAnimationFrame || function (e) {
          setTimeout(e, 1e3 / 60)
        }, i(".heart{width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);}.heart:after,.heart:before{content: '';width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%;position: fixed;}.heart:after{top: -5px;}.heart:before{left: -5px;}"), n(), r()
      }(window, document);
    </script>
  














</body>
</html>
